<?php
if(!defined('ROOTPATH')) exit('No Define ROOTPATH');

class Controller extends WooBase
{
	function __construct()
	{
		$this->init();
	}
	
	function init()
	{
		$this->out = array(
			'error_code' => '500',
			'error_message' => 'Server Error!',
			'time_out' => 2
		);
	}

    function load()
    {
    }

    /**
     * 控制器权限
     * @author fakis
     * @access protected
     * @param int $level
     */
    function purview($level)
    {
        //验证权限等级
        if(Purview::ROOT == $level)
        {
        }
        //验证用户操作权限
    }
}


